import request from '@/utils/request'
import store from '@/store'
const token=store.getters.token



//添加科目
function add(value){
    return request({
        url: 'video/Subjects/add_subjects',
        method: 'post',
        params: { token: token,name: value}
    })
}
//删除科目
function dele(id){
    return request({
        url: 'video/Subjects/delete_subjects',
        method: 'post',
        params: { token: token,id: id}
    })
}
//获取全部科目
function gettp(){
    return request({
        url: 'video/Subjects/select_Allsubjects',
        method: 'post',
        params: { token }
    })
}

export{
    add,
    dele,
    gettp
}